package cn.juque.workflow.api.dto.processinfo;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ProcessInstanceDeleteDTO</li>
 * </ul>
 * @date 2023-01-30 16:52:14
 **/
@Data
public class ProcessInstanceDeleteDTO extends AbstractRequestDTO {

    /**
     * 流程定义ID
     */
    @NotEmpty(message = "流程key不能为空")
    @Size(message = "流程key不能超过{max}个字符", max = 64)
    private String processDefinitionKey;

    /**
     * 实例ID
     */
    @NotEmpty(message = "实例ID不能为空")
    private String instanceId;

    /**
     * 删除的原因
     */
    @Size(message = "删除原因最大字数{max}", max = 40)
    private String reason;
}
